package factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext-factory.xml");
        UserServiceImplForFactory f = context.getBean("a", UserServiceImplForFactory.class);
        f.m();

        UserServiceImplForFactory user3 = context.getBean("user3", UserServiceImplForFactory.class);
        user3.m();
    }
}
